package com.fangcun.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fangcun.bean.api.category.response.CategoryWithChildrenResponse;
import com.fangcun.entity.GoodsCategory;

public interface GoodsCategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsCategory record);

    int insertSelective(GoodsCategory record);

    GoodsCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsCategory record);

    int updateByPrimaryKey(GoodsCategory record);
    
    List<GoodsCategory> list(GoodsCategory request);
    
    List<CategoryWithChildrenResponse> listWithChildren(@Param("teahouseId")Long teahouseId);
    
    List<GoodsCategory> listForAdmin(GoodsCategory request);
}